package com.cxyxj.aopxml;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class XmlTest {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring.xml");
        ProductController bean = context.getBean(ProductController.class);
        String cxyxj = bean.productQuery("cxyxj");
        System.out.println("方法返回值： " + cxyxj);
    }
}
